package jp.co.lkg.springsmp.common.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import jp.co.lkg.springsmp.common.dao.FlowerinfoDao;
import jp.co.lkg.springsmp.common.db.dto.FlowerinfoDto;
import jp.co.lkg.springsmp.common.db.mapper.FlowerinfoMapper;



@Component
public class FlowerinfoDaoImpl implements FlowerinfoDao
{

	@Autowired
	private FlowerinfoMapper flowerinfoMapper;

	@Override
	public FlowerinfoDto selectByPk(FlowerinfoDto dto) {
		
		return flowerinfoMapper.selectByPk(dto);
	}

	@Override
	public FlowerinfoDto selectByPkForUpdate(FlowerinfoDto dto) {
		return flowerinfoMapper.selectByPkForUpdate(dto);
	}

	@Override
	public void insert(FlowerinfoDto dto) {
		flowerinfoMapper.insert(dto);
		
	}

	@Override
	public void updateByPk(FlowerinfoDto dto) {
		flowerinfoMapper.updateByPk(dto);
		
	}

	@Override
	public void deleteByPk(FlowerinfoDto dto) {
		flowerinfoMapper.deleteByPk(dto);
		
	}

	@Override
	public void updateIncludeNull(FlowerinfoDto dto) {
		flowerinfoMapper.updateIncludeNull(dto);
		
	}

	@Override
	public List<FlowerinfoDto> select(FlowerinfoDto dto) {
		return flowerinfoMapper.select(dto);
	}

	@Override
	public List<FlowerinfoDto> selectAllFlower(FlowerinfoDto dto) {
		// TODO Auto-generated method stub
		return flowerinfoMapper.selectAllFlower(dto);
	}

	@Override
	public int selectAllPage() {
		// TODO Auto-generated method stub
		return flowerinfoMapper.selectAllPage();
	}

	@Override
	public List<FlowerinfoDto> selectByName(String flowerName) {
		// TODO Auto-generated method stub
		return flowerinfoMapper.selectByName(flowerName);
	}


	
}
